diff -Nur xwadtools-master/idbsp/buildbsp.c xwadtools/idbsp/buildbsp.c
--- xwadtools-master/idbsp/buildbsp.c	2001-06-15 15:26:09.000000000 +0400
+++ xwadtools/idbsp/buildbsp.c	2023-09-09 20:41:50.546579763 +0300
@@ -235,6 +235,7 @@
    = and returns the cut off back side in a newly allocated worldline
    ==================
  */
+#if 0
 double round(float x)
 {
 	if (x > 0)
@@ -253,7 +254,7 @@
 		return (int)x - 1;
 	return x;
 }
-
+#endif
 line_t *CutLine(line_t *wl, divline_t *bl)
 {
 	int		side;
diff -Nur xwadtools-master/listacs/listacs.C xwadtools/listacs/listacs.C
--- xwadtools-master/listacs/listacs.C	2001-06-15 15:26:09.000000000 +0400
+++ xwadtools/listacs/listacs.C	2023-09-09 21:01:13.628770366 +0300
@@ -9,13 +9,15 @@
 // Udo Munk <munkudo@aol.com>
 //
 
-#include <iostream.h>
-#include <iomanip.h>
+#include <iostream>
+#include <iomanip>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include <math.h>
 
+using namespace std;
+
 #include "listacs.h"
 #include "strfunc.h"
 
diff -Nur xwadtools-master/Makefile.lin xwadtools/Makefile.lin
--- xwadtools-master/Makefile.lin	2001-06-15 15:26:09.000000000 +0400
+++ xwadtools/Makefile.lin	2023-09-09 22:27:57.007200978 +0300
@@ -14,11 +14,11 @@
 
 # use GNU C under Linux
 CC = gcc
-CFLAGS = '-O2 -Wall $(ENDIAN) $(OS)'
+CFLAGS = '-fsigned-char -O0 -g -ggdb -Wall $(ENDIAN) $(OS)'
 
 # and use GNU C++ too
 CPP = g++
-CPPFLAGS = '-O -Wall $(ENDIAN) $(OS)'
+CPPFLAGS = '-fsigned-char -fpermissive -std=gnu++98 -O0 -g -ggdb -Wall $(ENDIAN) $(OS)'
 
 # Linux comes with GNU make
 MAKE = make
diff -Nur xwadtools-master/reject/debug.C xwadtools/reject/debug.C
--- xwadtools-master/reject/debug.C	2001-06-15 15:26:09.000000000 +0400
+++ xwadtools/reject/debug.C	2023-09-09 20:52:34.324257460 +0300
@@ -1,5 +1,5 @@
-#include <iostream.h>
-#include <fstream.h>
+#include <iostream>
+#include <fstream>
 #include <stdlib.h>
 #include <time.h>
 
diff -Nur xwadtools-master/reject/debug.hpp xwadtools/reject/debug.hpp
--- xwadtools-master/reject/debug.hpp	2001-06-15 15:26:09.000000000 +0400
+++ xwadtools/reject/debug.hpp	2023-09-09 20:51:42.200445467 +0300
@@ -1,7 +1,9 @@
 #ifndef __DEBUG_HPP__                
 #define __DEBUG_HPP__                
 
-#include <fstream.h>
+#include <fstream>
+
+using namespace std;
 
 class cdebugclass
 {
diff -Nur xwadtools-master/reject/main.C xwadtools/reject/main.C
--- xwadtools-master/reject/main.C	2001-06-15 15:26:09.000000000 +0400
+++ xwadtools/reject/main.C	2023-09-09 20:50:25.364722610 +0300
@@ -17,11 +17,13 @@
 //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 // *****************************************************************************
 
-#include <iostream.h>
-#include <new.h>
+#include <iostream>
+#include <new>
 #include <stdio.h>
 #include <stdlib.h>
-#include <fstream.h>
+#include <fstream>
+
+using namespace std;
 
 #include "pwad.hpp"
 #include "reject.hpp"
diff -Nur xwadtools-master/reject/pwad.C xwadtools/reject/pwad.C
--- xwadtools-master/reject/pwad.C	2001-06-15 15:26:09.000000000 +0400
+++ xwadtools/reject/pwad.C	2023-09-09 20:52:15.816324216 +0300
@@ -18,8 +18,8 @@
 // *****************************************************************************
 
 #include <stdio.h>
-#include <iostream.h>
-#include <iomanip.h>
+#include <iostream>
+#include <iomanip>
 #include <string.h>
 #include "sysdep.h"
 #include "swapfunc.h"
diff -Nur xwadtools-master/reject/reject.C xwadtools/reject/reject.C
--- xwadtools-master/reject/reject.C	2001-06-15 15:26:09.000000000 +0400
+++ xwadtools/reject/reject.C	2023-09-09 20:50:46.388646777 +0300
@@ -17,7 +17,7 @@
 //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 // *****************************************************************************
 
-#include <iostream.h>
+#include <iostream>
 #include "debug.hpp"
 #include "reject.hpp"
 #include "swapfunc.h"
